package Huihu.src.Test;

public class dome4 {
    public static void main(String[] args) {
        StringBuilder sb=new StringBuilder();
        StringBuilder sb2=sb.append("abc");//append添加功能
        System.out.println("sb:"+sb);
        System.out.println("sb2:"+sb2);

        StringBuilder sb3=new StringBuilder("abc");
        System.out.println("sb3:"+sb3);

        StringBuilder sb4=new StringBuilder("学java，");
        StringBuilder sb5=new StringBuilder("到传智播客");
        StringBuilder sb6=new StringBuilder("找小黑");
        String sb7=sb4.toString()+sb5.toString()+sb6.toString();//toString（）转换为字符串
        System.out.println("sb7:"+sb7);
    }
}
